return {
    {
        'hrsh7th/nvim-cmp',
        event = 'InsertEnter',
        config = function()
            local cmp = require('cmp')
            cmp.setup {
                snippet = {
                    expand = function(args)
                        require('luasnip').lsp_expand(args.body)
                    end,
                },
                window = {
                    documentation = {
                        border = 'single'
                    }
                },
                mapping = cmp.mapping.preset.insert({
                    ['<C-b>'] = cmp.mapping.scroll_docs(-4),
                    ['<C-f>'] = cmp.mapping.scroll_docs(4),
                }),
                sources = cmp.config.sources({
                    { name = 'nvim_lsp' },
                    { name = 'luasnip' },
                }, {
                    { name = 'buffer' },
                    { name = 'path' },
                }),
            }
        end,
        dependencies = {
            { 'hrsh7th/cmp-nvim-lsp' },
            {
                'saadparwaiz1/cmp_luasnip',
                dependencies = {
                    { 'L3MON4D3/LuaSnip' }
                }
            },
            { 'hrsh7th/cmp-buffer' },
            { 'hrsh7th/cmp-path' },
        }
    },
}
